import sys
import time

import pyautogui
import pyperclip


def is_windows():
    if sys.platform.startswith('win'):
        return True
    return False

def is_mac():
    if sys.platform.startswith('darwin'):
        return True
    return False

def is_linux():
    if sys.platform.startswith('linux'):
        return True
    return False

def parse(input_text):
    pyperclip.copy(input_text)
    ctrl = "ctrl"
    if not is_windows():
        ctrl = "command"
    pyautogui.hotkey(ctrl, 'v')
    time.sleep(0.5)